<?php
if(!defined('DEDEINC')) exit("Request Error!");
/**
*问答模块Model
*by zsh
*/
class mwenda extends Model{

    function wenda_query($sql = ""){
        $this->dsql->SetQuery($sql);
        $this->dsql->Execute();
    }

    function wenda_get_one($where = ""){ // 根据条件获取一条记录
        // echo "select * from #@__guanjun_wenda where " . $where;
        return $this->dsql->GetOne("select * from #@__guanjun_wenda where " . $where);
    }

}

 ?>